#include <bits/stdc++.h>
using namespace std;

int nums[100005];
bool visit[100005];

int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    int m = n;
    for(int i = 1;i <= n;i++)
    {
        cin>>nums[i];
    }
    sort(nums+1,nums+n+1);
    int l = 1,r = 1;
    while(r <= n)
    {
        if(nums[l] < nums[r])
        {
            l++;
            m--;
            r++;
        }
        else
        {
            r++;
        }
    }
    cout<<m<<endl;
    return 0;
}

